/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/17 下午7:06
 * LastModified: 2020/03/17 19:06:17
 */

package com.qolome.knowledge.design.pattern.command.gplayer;

import com.qolome.knowledge.design.pattern.command.gplayer.actions.PauseAction;
import com.qolome.knowledge.design.pattern.command.gplayer.actions.PlayAction;
import com.qolome.knowledge.design.pattern.command.gplayer.actions.SpeedAction;
import com.qolome.knowledge.design.pattern.command.gplayer.actions.StopAction;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月17日 19:06:24
 */
public class Test {

    public static void main(String[] args) {
        Gplayer gplayer = new Gplayer();
        Controller controller = new Controller();
        controller.addAction(new PlayAction(gplayer));
        controller.addAction(new PauseAction(gplayer));
        controller.addAction(new StopAction(gplayer));
        controller.addAction(new SpeedAction(gplayer));
        controller.executes();


    }
}
